package com.study.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@Controller
public class ModelTest {

    @RequestMapping("mt/t1")
    public String test(Model model){


        //默认这一种就是转发
        //return "hello";
        //重定向的话
        return "redirect:/index.jsp";

    }

}
